<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  Name="EmptyFeatureUpgradeActionContentType"
  xmlns="http://schemas.microsoft.com/pag/gax-core"
  Bound="false">
	<DocumentationLinks>
		<Link Caption="MSDN: Working with Features" Url="http://msdn.microsoft.com/en-us/library/ms460318.aspx" Kind="Documentation"/>
	</DocumentationLinks>
	<xi:include href="../../../TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
	<Caption>Feature: Add Upgrade Action for Content Type</Caption>
	<Description>Adds a upgrade action that adds a field to a content type.</Description>
	<HostData Priority="20">
		<Icon File="Help/Icons/icon_Features.ico" />
		<CommandBar Menu="SPSFFolderArtefacts"/>
		<CommandBar Menu="SPSFItemArtefacts"/>
		<spsf:MetaData
		  Visible="true"
		  BindingType="XmlMergeReference"
		  Enabled="true"
		  CreateVSTemplate="false"
		  SharePointVersions="14"
		  XPath="/ns:Feature"
		  XPathNamespace="http://schemas.microsoft.com/sharepoint/"
		  Category="Features"
		  xmlns:spsf="http://www.spalmblogger.de">
			<spsf:Authors>
				<spsf:Author>Torsten Mandelkow</spsf:Author>
			</spsf:Authors>
			<spsf:VersionHistory>
				<spsf:VersionHistoryEntry>1.0 Initial Recipe</spsf:VersionHistoryEntry>
			</spsf:VersionHistory>
			<spsf:WebPageContent>
				<![CDATA[]]>
			</spsf:WebPageContent>
		</spsf:MetaData>
	</HostData>
	<Arguments>

		<xi:include href="../../BaseArguments.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<Argument Name="FeatureUpgradeBeginVersion" Required="false">
			<Converter Type="VersionConverter" />
			<ValueProvider Type="Evaluator" Expression=""  />
		</Argument>
		<Argument Name="FeatureUpgradeEndVersion" Required="false">
			<Converter Type="VersionConverter" />
			<ValueProvider Type="Evaluator" Expression=""  />
		</Argument>
		<Argument Name="FeatureUpgradePushDown" Type="System.Boolean" Required="true">
			<ValueProvider Type="Evaluator" Expression="True"  />
		</Argument>

		<Argument Name="FeatureUpgradeContentTypeId" Type="NameValueItem" Required="true" >
			<ValueProvider Type="DefaultNameValueItemProvider" Name="Item" Value="0x01" />
		</Argument>
		<Argument Name="FeatureUpgradeFieldId" Type="NameValueItem" Required="true" >
			<ValueProvider Type="DefaultNameValueItemProvider" Name="Field" Value="{00000000-0000-0000-0000-000000000000}" />
		</Argument>

	</Arguments>
	<GatheringServiceData>
		<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
			<Pages>
				<Page Height="350">
					<Title>Property Settings</Title>
					<Fields>
						<Field Label="Branding" ValueName="SPSFBranding" PanelType="SPALM.SharePointSoftwareFactory.Library.BrandingPanel, SPALM.SharePointSoftwareFactory.Library" />
						<Field PanelType="SPALM.SharePointSoftwareFactory.Library.NameValueItemPanel, SPALM.SharePointSoftwareFactory.Library" ValueName="FeatureUpgradeContentTypeId" Label="Content Type" >
							<Help>Optional string. Specifies the content type.</Help>
							<Editor Type="SPALM.SharePointSoftwareFactory.Library.ContentTypeEditor, SPALM.SharePointSoftwareFactory.Library" />
						</Field>
						<Field PanelType="SPALM.SharePointSoftwareFactory.Library.NameValueItemPanel, SPALM.SharePointSoftwareFactory.Library" ValueName="FeatureUpgradeFieldId" Label="Field" >
							<Help>Optional string. Specifies the field in the content type.</Help>
							<Editor Type="SPALM.SharePointSoftwareFactory.Library.SiteColumnEditor, SPALM.SharePointSoftwareFactory.Library" />
						</Field>
						<Field ValueName="FeatureUpgradePushDown" Label="Push Down Changes" >
							<Help>Optional Boolean. Specifies whether the content type field should be applied to inheriting content types and lists.</Help>
						</Field>
						<Field ValueName="FeatureUpgradeBeginVersion" Label="Begin Version" >
							<Help>Optional string. Specifies the earliest version number to upgrade.</Help>
						</Field>
						<Field ValueName="FeatureUpgradeEndVersion" Label="End Version" >
							<Help>Optional string. Specifies the latest version number to upgrade.</Help>
						</Field>
					</Fields>
				</Page>
			</Pages>
		</Wizard>
	</GatheringServiceData>
	<Actions CoordinatorServiceType="ConditionalCoordinator">

		<xi:include href="../../BaseStartingActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<!-- Add XML for document template -->
		<Action
		  Name="AddXmlContent"
		  Type="AddXmlToItemAction"
		  XPath="/ns:Feature"
		  XPathNamespace="http://schemas.microsoft.com/sharepoint/"
		  ReplaceExistingNode="false"
		  Open="true"
		  TemplateFileName="Text\EmptyFeature\FeatureUpgradeActionContentType.xml.t4">
			<Input Name="SelectedItem" RecipeArgument="VisualStudioSelectedItem" />
			<Output Name="CreatedElementFolder" />
			<Output Name="CreatedElementFile" />
		</Action>

		<xi:include href="../../BaseFinalActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

	</Actions>
</Recipe>